home *** CD-ROM | disk | FTP | other *** search
- Subject: Requesting a new frame shape
- Sent: 6/11/96 11:32 AM
- Received: 6/11/96 11:41 AM
- From: Neal Williams, neal@corda.com
- Reply-To: ODF Interest, ODF-Interest@CILabs.ORG
- To: OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
-
- I am requesting a new frame shape for my frame, but it's not working right.
-
- Here is the code I use:
-
- ODShape* TheShapeIWant = MyODFrame->CreateShape(ev);
- TheShapeIWant->SetRectangle(ev, &MyODRect);
- ODShape* MyNewShape = MyODFrame->RequestFrameShape(ev, TheShapeIWant,
- kODNULL);
- MyODFrame->Invalidate(ev, kODNULL, kODNULL);
- MyODFrame->ChangeUsedShape(ev, kODNULL, kODNULL);
- MyODFrame->InvalidateActiveBorder(ev);
- MyNewShape->Release(ev);
- TheShapeIWant->Release(ev);
-
- After executing this code my active border changes to be the size of my
- frame shape, but the clip-shape and active-shape of my facet don't appear
- to be updating correctly. Afterwards, If I click in the undisplayed portion
- of my frame I get a one-way trip to the debugger.
-
- BTW, I'm embeded within ODF Draw.
-
- I used this same code in my non-ODF OpenDoc part and everything worked
- fine.
-
- -Neal
-